<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>热搜</title>
    <style>
        .content {
            font-size: 18px;
            line-height: 30px;
        }
        table {
            width: 536px
        }
        .col-1{
            width: 80%;
            text-align: left;
            /*居左*/
        }
        .col-2 {
            width: 20%;
            text-align: center;
        }
        .icon {
            background-image: url(./111.png);
            width: 24px;
            height: 24px;
            background-size: 100% 100%;
            display: inline-block;
            /*加上后图片才能显示出来*/
            vertical-align: bottom;
            /*使垂直对齐*/
        }
        .title .col-1 {
            font-size: 20px;
            font-weight: bolder;
        }
        .num {
            font-size: 20px;
            color: #fffff3;
        }
        #one {
            background-color: #f54545;
            padding-right: 4px;
            padding-left: 4px;
        }

        #two {
            background-color: #ff8547;
            padding-right: 4px;
            padding-left: 4px;
        }

        #three {
            background-color: #ffac38;
            padding-right: 4px;
            padding-left: 4px;
        }

        #four {
            background-color: #81b9f5;
            padding-right: 4px;
            padding-left: 4px;
        }
        a {
            color: blue;
            text-decoration: none; /*这里取消掉超链接的划线，因为会和下面的下划线重复*/
        }
        a:hover {
            text-decoration: underline;
        }

        .content .col-1,
        .content .col-2 {
            /*给每一行的下面的下划线设置颜色*/
            border-bottom: 2px solid #f3f3f3;
        }

    </style>
</head>

<body>
    <table cellspacint="0px"> <!--这个属性表示单元格之间的空间-->
        <th class="title col-1">热搜</th>
        <th class="title col-2"><a href="#">换一换<span class="icon"></span></a></th>
        <tr class="content">
            <td class="col-1"><span class="num" id="one">1</span><a href="https://github.com/">GitHub</a></td>
            <td class="col-2">666万</td>
        </tr>
        <tr class="content">
            <td class="col-1"><span class="num" id="two">2</span><a href="https://www.csdn.net/">CSDN</a></td>
            <td class="col-2">666万</td>
        </tr>
        <tr class="content">
            <td class="col-1"><span class="num" id="three">3</span><a href="https://gitee.com/">Gitee</a></td>
            <td class="col-2">666万</td>
        </tr>
        <tr class="content">
            <td class="col-1"><span class="num" id="four">4</span><a href="https://leetcode.cn/">LeetCode</a></td>
            <td class="col-2">666万</td>
        </tr>
    </table>
</body>

</html>